<script lang="ts">
    import UiButton from "$lib/core/UiButton.svelte";
    import * as Lucid from "@lucide/svelte";

    let {
        userId,
        ownerId,
        delSpace,
    }: { userId: number; ownerId: number; delSpace: () => void } = $props();
</script>

{#if userId === ownerId}
    <UiButton onclick={delSpace}>
        <Lucid.Trash2 />
    </UiButton>
{/if}
